﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DateAndTime
{
    class Program
    {
        static void Main(string[] args)
        {
            DateTime myvalue = DateTime.Now;

            //Console.WriteLine(myvalue.ToString());

            //Console.WriteLine(myvalue.ToShortDateString());

            //Console.WriteLine(myvalue.ToShortTimeString());

            //Console.WriteLine(myvalue.ToLongDateString());
            //Console.WriteLine(myvalue.ToLongTimeString());

            //Console.WriteLine(myvalue.AddDays(5).ToShortDateString());

            //Console.WriteLine(myvalue.Month.ToString());

            DateTime myvalue2 = DateTime.Parse("8/11/1996");

           // Console.WriteLine(myvalue2.ToShortDateString());
            TimeSpan myAge = DateTime.Now.Subtract(myvalue2);

            Console.WriteLine(myAge.TotalDays);

            Console.ReadLine();
        }
    }
}
